'use strict';

const fs = require('fs');
const path = require('path');
//const userHome = require('user-home');

/** MONGODB **/
const mongodbUrl = 'mongodb://127.0.0.1:27017/dbc-imooc-dev';
const mongodbDbName = 'dbc-imooc-dev';

/** OSS **/
// const OSS_ACCESS_KEY = 'LTAI4G7nQd2Tu5ZuHR9Y5ZTA';
// const OSS_ACCESS_SECRET_KEY = fs.readFileSync(path.resolve(userHome, '.imooc-cli-dev', 'oss_access_secret_key')).toString();
// const OSS_PROD_BUCKET = 'imooc-cli-sync';
// const OSS_DEV_BUCKET = 'imooc-cli-sync-dev';
// const OSS_COMPONENT_BUCKET = 'imooc-component';
// const OSS_REGION = 'oss-cn-hangzhou';

/** MYSQL **/
// const MYSQL_HOST = 'rm-bp188055550b15tn90o.mysql.rds.aliyuncs.com';
// const MYSQL_PORT = 3306;
// const MYSQL_USER = 'imooc';
// const MYSQL_PWD = fs.readFileSync(path.resolve(userHome, '.imooc-cli-dev', 'mysql_password')).toString().trim();
// const MYSQL_DB = 'imooc_cli';

module.exports = {
  mongodbUrl,
  mongodbDbName,
  // OSS_ACCESS_KEY,
  // OSS_ACCESS_SECRET_KEY,
  // OSS_PROD_BUCKET,
  // OSS_DEV_BUCKET,
  // OSS_COMPONENT_BUCKET,
  // OSS_REGION,
  // MYSQL_HOST,
  // MYSQL_PORT,
  // MYSQL_USER,
  // MYSQL_PWD,
  // MYSQL_DB,
};
